class CreateDiningTables < ActiveRecord::Migration[5.2]
  def change
    create_table :dining_tables do |t|
      t.integer :restaurant_id, null: false,  limit: 8
      t.integer :spec,          null: false
      t.integer :number,        null: false
      t.timestamps              null: false
    end
    add_foreign_key :dining_tables,  :restaurants
  end
end
